/*
 * @Author: yuanzhaohui
 * @Date: 2023-07-03 13:28:01
 * @Purpose: http接口集中管理
 */

let install = (Vue, vm) => {
  let unifyRequest = (params) => uni.$u.http.post(`/minrest`, params);
  //globalData.js配置的Remote_Config接口通用（post请求）
  let unifyMiniRest = (params) => uni.$u.http.post(params.url, params);
  //globalData.js配置的Remote_Config接口通用（get请求）
  let unifyMiniRestGet = (params) => uni.$u.http.get(params.url, params);
  
  vm.$u.api = {
    unifyRequest,
	  unifyMiniRest,
	  unifyMiniRestGet
  };
};

export default {
  install,
};
